package com.atguigu.srb.core.controller.api;


import com.atguigu.common.results.R;
import com.atguigu.srb.core.service.IntegralGradeService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 积分等级表 前端控制器
 * </p>
 *
 * @author Atguigu
 * @since 2022-10-24
 */
@RestController
@Api(tags = "用户操作积分等级模块")
@RequestMapping("/api/core/integralGrade")
public class ApiIntegralGradeController {
    @Autowired
    IntegralGradeService integralGradeService;
    @ApiOperation(value = "查询所有积分等级" ,httpMethod = "GET")
    @GetMapping  //  get+/admin/core/integralGrade  查询所有
    public R list(){
        return R.success().data("items" , integralGradeService.list());
    }
}

